<template>
	<view>
		<carHeader :title="'消息'"></carHeader>
		<view class="container">
			<view v-for="(item, index) in list" :key="index">
				<view class="model">
					<view class="left">
						<text class="message">{{ item.message }}</text>
						<br />
						<text class="price">您已成功支付{{ item.price }}元</text>
					</view>
					<view class="right">
						<text class="time">{{ item.time }}</text>
					</view>
				</view>
				<view class="hr" v-if="index < list.length - 1"></view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [{
						message: "支付成功通知",
						time: "2023.3.11 12:34",
						price: "56.9",

					},
					{
						message: "支付成功通知",
						time: "2023.3.11 12:34",
						price: "56.9",

					},
					{
						message: "支付成功通知",
						time: "2023.3.11 12:34",
						price: "56.9",
					}
				]
			}
		},
		methods: {

		}
	}
</script>

<style lang="scss">
	.container {
		border-radius: 30rpx;
		width: 82%;
		background-color: #fff;
		position: relative;
		margin: 0 auto;
		padding: 32rpx;
		top: -200rpx;

		.model {
			display: flex;
			align-items: center;

			.left {
				.message {
					font-size: 28rpx;
					font-weight: bold;
				}

				.price {
					display: inline-block;
					margin-top: 10rpx;
					font-size: 26rpx;
				}
			}

			.right {
				.time {
					margin-left: 120rpx;
					color: #C3C3C3;
				}
			}
		}

		.hr {
			height: 2rpx;
			background-color: #eee;
			/* 灰色横线 */
			margin-top: 40rpx;
			margin-bottom: 40rpx;
			/* 可选，根据需要调整 */
		}
	}
</style>